package com.eduadmin.mapper;

import com.eduadmin.entity.Grade;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface GradeMapper {
    //hgm 批量导入年级信息
    int insertGrades(List<Grade> grades);

    //hgm 获取所有年级
    List<Grade> selectAllGrades();

    // zlc 添加
    List<Grade> getGradeNameByParam(String gradeDatatableName);

    //hgm 根据名字查年级
    Grade selectGradeByGradeName(String gradeName);
    //hgm
    Long selectAllTotal(Map<String, Object> paraMap);
    //hgm
    List<Grade> selectAllGradeList(Map<String, Object> paraMap);
    //hgm
    int insertGrade(Grade grade);
    //hgm
    void updateGrade(Grade grade);
    //hgm
    int deleteGrade(String idString);
}